﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhaoxi.FactoryDeviceSystem.Models
{
    //报警记录信息类
    public class AlarmInfo
    {
        public int DeviceNo { get; set; }
        public string DeviceName { get; set; }
        public string AlarmState {  get; set; }
        public string AlarmNote { get; set; }
        public string AlarmValue { get; set; }

        public AlarmInfo(int deviceNo, string deviceName, string alarmState,string alarmNote, string alarmValue)
        {
            DeviceNo = deviceNo;
            DeviceName = deviceName;
            AlarmState = alarmState;
            AlarmNote = alarmNote;
            AlarmValue = alarmValue;
        }

        public AlarmInfo(int deviceNo, string deviceName, string alarmNote, string alarmValue)
        {
            DeviceNo = deviceNo;
            DeviceName = deviceName;
            AlarmState = "报警";
            AlarmNote = alarmNote;
            AlarmValue = alarmValue;
        }
    }
}
